<?php 
// This page begins the HTML header for the site.

// Start output buffering.
ob_start();
// Initialize a session.
session_name('NEWNASSOCVISITID');
session_start();

// Check for a $page_title value.
if (!isset($page_title)) {
	$page_title = 'Newnham College Associates';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
	<title><?php echo $page_title; ?></title>
<style type="text/css" media="screen">@import "./includes/style.css";</style>
</head>
<body>


<table  cell-padding="10">

  <tr>

     <td  class="pic" width="160" >
           <img  width="120" height="96" alt="Newnham College Associates" src="images/window.jpg" >
    </td>

    <td  class="pic">
    <!-- First row is the logo -->
    <img  alt="Newnham College Associates" src="images/NewLogo.jpg"
          class="logo" >
   
    </td>
  </tr>

    <tr>
    <!-- second row is 2 columns, 1 for the menu and 1 for the contents -->
    <td class="menu">
    <!-- menu -->
      <ul class="menu">

      <li><a class="navigation<?php if ($site_section == 'Home')
        {echo 'Here';} ?>"
         href="index.php">Home</a></li>
      <li><a class="navigation<?php if ($site_section == 'Find')
        {echo 'Here';} ?>"
         href="search.php">Find an Associate</a></li>
      <li><a class="navigation<?php if ($site_section == 'Role')
        {echo 'Here';} ?>"
         href="role.php">The Associates' Role</a></li>
      <li><a class="navigation<?php if ($site_section == 'Development')
        {echo 'Here';} ?>"
         href="dev.php">Fundraising and Development</a></li>
      <li><a class="navigation<?php if ($site_section == 'Events')
        {echo 'Here';} ?>"
         href="events.php">Events</a></li>
      <li><a class="navigation<?php if ($site_section == 'Become')
        {echo 'Here';} ?>"
         href="become.php">Become an Associate</a></li>

         
         <?php  
         if (!isset($_SESSION['user_level']) || $site_section == 'Logout') { // not logged in
           if ($site_section == 'Login') {
             echo '<li><a class="navigationHere"';
           } else {
             echo '<li><a class="navigation"';
           }
           echo 'href="login.php">Associates login</a></li>';
         } else { // end of not logged in
           $ul = $_SESSION['user_level'];
           if ($ul > 0) {
             if ($site_section == 'Logout') {
               echo '<li style="margin-top: 2em;"><a class="navigationHere"';
             } else {
               echo '<li style="margin-top: 2em;"><a class="navigation"';
             }
             echo 'href="logout.php">Logout</a></li>';
             if ($site_section == 'Edit') {
               echo '<li><a class="navigationHere"';
             } else {
               echo '<li><a class="navigation"';
             }
               echo
             "href=\"assoc.php?assoc={$_SESSION['userid']}&do=edit\">Edit your details</a></li>";
           }
             /*
           if ($ul > 1) {
             if ($site_section == 'AddEvent') {
               echo '<li><a class="navigationHere"';
             } else {
               echo '<li><a class="navigation"';
             }
             echo 'href="addEvent.php">Add event details</a></li>';
           }
             */
             /*
           if ($ul > 4) {
             if ($site_section == 'Brochure') {
               echo '<li><a class="navigationHere"';
             } else {
               echo '<li><a class="navigation"';
             }
             echo 'href="brochure.php">Brochure</a></li>';
           }
             */
           if ($ul == 10) {
             if ($site_section == 'Admin') {
               echo '<li><a class="navigationHere"';
             } else {
               echo '<li><a class="navigation"';
             }
             echo 'href="admin.php">Administration</a></li>';
           }
         }
         ?>

         
      <li style="margin-top: 2em;"><a class="navigation" href="http://www.newn.cam.ac.uk">Newnham College</a></li>
      <li><a class="navigation" href="http://www.newn.cam.ac.uk/roll">Roll</a></li>

    </ul>


    </td>
    <td>
        <!-- contents -->
    <div class="content">
      
<!-- End of Header -->